﻿using System.ComponentModel;

namespace Common.Enums
{
    public enum ApiEnum
    {
        /// <summary>
        /// 请求(或处理)成功
        /// </summary>
        [Description("请求(或处理)成功")]
        Status = 200,

        /// <summary>
        /// 内部请求出错
        /// </summary>
        [Description("内部请求出错")]
        Error = 500,

        /// <summary>
        /// 未授权标识
        /// </summary>
        [Description("登录凭证已失效，您无权访问该接口")]
        Unauthorized = 401,

        /// <summary>
        /// 请求参数不完整或不正确
        /// </summary>
        [Description("请求参数不完整或不正确")]
        ParameterError = 400,

        /// <summary>
        /// 您的访问权限等级不够
        /// </summary>
        [Description("您的权限等级不够，请联系管理员")]
        PermissionNotAllow = 403,

        /// <summary>
        /// HTTP请求类型不合法
        /// </summary>
        [Description("HTTP请求类型不合法")]
        HttpMehtodError = 405,

        /// <summary>
        /// HTTP请求不合法,请求参数可能被篡改
        /// </summary>
        [Description("HTTP请求不合法,请求参数可能被篡改")]
        HttpRequestError = 406,

        /// <summary>
        /// 该URL已经失效
        /// </summary>
        [Description("该URL已经失效")]
        URLExpireError = 407,//HTTP请求不合法
    }

    /// <summary>
    /// 网站元素类型
    /// </summary>
    public enum WebElementType 
    {
        /// <summary>
        /// 公司名
        /// </summary>
        [Description("公司名")]
        CompanyName=1,

        /// <summary>
        /// 关键词设置
        /// </summary>
        [Description("网站关键词")]
        WebSeoKey = 2,
        /// <summary>
        /// 关键词设置
        /// </summary>
        [Description("关键词描述")]
        WebSeoDescription = 3,

        /// <summary>
        /// 网站链接
        /// </summary>
        [Description("网站链接")]
        WebHref = 4,

        /// <summary>
        /// 公司电话
        /// </summary>
        [Description("公司电话")]
        Tel =5,

        /// <summary>
        /// 手机
        /// </summary>
        [Description("手机号")]
        Phone =6,

        /// <summary>
        /// 传真
        /// </summary>
        [Description("传真")]
        Fax=7,

        /// <summary>
        /// 邮箱
        /// </summary>
        [Description("公司邮箱")]
        Email=8,

        /// <summary>
        /// 邮政编码
        /// </summary>
        [Description("邮政编码")]
        PostalCode = 9,

        /// <summary>
        /// 公司地址
        /// </summary>
        [Description("公司地址")]
        Address = 10,

        /// <summary>
        /// 公司logo
        /// </summary>
        [Description("logo")]
        Logo =11,

        /// <summary>
        /// QQ
        /// </summary>
        [Description("QQ")]
        QQ =12,

        /// <summary>
        /// Skype
        /// </summary>
        [Description("Skype")]
        Skype=13,


        /// <summary>
        /// 微信二维码
        /// </summary>
        [Description("微信二维码")]
        Wechat = 14,

        /// <summary>
        /// 统计代码
        /// </summary>
        [Description("统计代码")]
        StatisticalCode =15,


        /// <summary>
        /// 备案号
        /// </summary>
        [Description("备案信息")]
        RecordInformation = 16,

    }

    /// <summary>
    /// 网站栏目类型
    /// </summary>
    public enum ClassType 
    {
        /// <summary>
        /// 内容页
        /// </summary>
        [Description("内容页")]
        Content =1,

        /// <summary>
        /// 产品列表页
        /// </summary>
        [Description("产品列表页")]
        Products =2,

        /// <summary>
        /// 新闻列表页
        /// </summary>
        [Description("新闻列表页")]
        News =3,
    }
}
